import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lily
 * Date: 2024-09-24
 * Time: 20:18
 */
public class test_1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNext()) { // 注意 while 处理多个 case
            String str=in.next();
            char[] chars = str.toCharArray();
            StringBuffer stringBuffer=new StringBuffer();
            //加入
            stringBuffer.append(chars[0]);

            for (int i = 1; i < chars.length; i++) {
                if (chars[i-1]==' '){
                    stringBuffer.append(chars[i]);
                }
            }
            String ret=stringBuffer.toString();
            ret=ret.toUpperCase();
            System.out.println(ret);
        }
    }

}
